﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Collections.Specialized;

namespace Sharp.UnusedReferences.DataObjects
{
	class WeakEventListener : IWeakEventListener
	{
		public event NotifyCollectionChangedEventHandler CollectionChangedEvent;
		#region IWeakEventListener Members

		public bool ReceiveWeakEvent(Type managerType, object sender, EventArgs e)
		{
			if(CollectionChangedEvent != null)
			{
				CollectionChangedEvent(sender, (NotifyCollectionChangedEventArgs)e);
			}
			return true;
		}

		#endregion
	}
}
